package com.cci.kangdao.dao;

import com.cci.kangdao.dao.model.CompanyT;
import org.apache.ibatis.annotations.Select;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;
import java.util.Map;

/**
 * 常见问题dao
 *
 */
@MapperScan
public interface CommonQuestionTDao {

	//获取常见问题种类集合
	@Select("select ID,CommonQuestionName,Flag from CommonQuestionType_T where Flag = 0")
	List<Map<String,Object>> getCommonQuestionTypeList();


	//根据常见问题分类获取常见问题详情集合
	@Select("select * from CommonQuestionDetail_T where CommonQuestionTypeID=#{CommonQuestionTypeID} and Flag=0")
	List<Map<String,Object>> getCommonQuestionDetailList(long CommonQuestionTypeID);
}
